package redis

func (k *key) PfAdd(elem ...any) BoolResult {
	return k.cmd("PFADD", append([]any{k.key}, elem...)...)
}

func (k *key) PfCount() IntResult {
	var args []any
	for _, kk := range k.keys {
		args = append(args, kk)
	}
	return k.cmd("PFCOUNT", args...)
}

func (k *key) PfMerge() BoolResult {
	args := []any{}
	for _, k := range k.keys {
		args = append(args, k)
	}
	return k.cmd("PFMERGE", args...)
}
